package com.sardine.base.esm.session;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 上海京东到家元信信息技术有限公司<br>
 * Created with IntelliJ IDEA.
 * Date:2017/7/11
 * Time:15:57
 *
 * @author daifeng<br>
 *         daifeng@imdada.cn
 * @since JDK 1.7 <br>
 * Copyright (c) 2017 imdada System Incorporated All Rights Reserved.
 */
public final class EsmSessionUtils {
    private static final Logger logger = LoggerFactory.getLogger(EsmSessionUtils.class);

    public static EsmSession getEsmSession(EsmSessionFactory esmSessionFactory,EsmExecutorType esmExecutorType){
        EsmSession esmSession= esmSessionFactory.openSession(esmExecutorType);
        return esmSession;
    }
}
